import request from '@/utils/request'

export const getUserData = params => request({
  url: '/users',
  params
})
export const getUserId = params => request({
  url: '/users/:id',
  params
})

export const addUser = obj => request({
  url: '/users',
  method: "POST",
  params: {
    obj
  }
})